package Hibernate.dao;

import java.util.Map;

/**
 * Classroom entity. @author MyEclipse Persistence Tools
 */

public class Classroom implements java.io.Serializable {

	// Fields

	private String epclassId;
	private Integer limitNo;
	private Integer nowNo;
	private Integer status;

	// Constructors

	/** default constructor */
	public Classroom() {
	}

	/** full constructor */
	public Classroom(String epclassId, Integer limitNo, Integer nowNo,
			Integer status) {
		this.epclassId = epclassId;
		this.limitNo = limitNo;
		this.nowNo = nowNo;
		this.status = status;
	}

	// Property accessors

	public String getEpclassId() {
		return this.epclassId;
	}

	public void setEpclassId(String epclassId) {
		this.epclassId = epclassId;
	}

	public Integer getLimitNo() {
		return this.limitNo;
	}

	public void setLimitNo(Integer limitNo) {
		this.limitNo = limitNo;
	}

	public Integer getNowNo() {
		return this.nowNo;
	}

	public void setNowNo(Integer nowNo) {
		this.nowNo = nowNo;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public void setInfo(Map<String, String> value) {
		// TODO Auto-generated method stub
		if(value.containsKey("epClassId")){
			this.setEpclassId(value.get("epClassId"));
		}
		if(value.containsKey("limitNo")){
			this.setLimitNo(Integer.parseInt(value.get("limitNo")));
		}
	}

}